package com.hopool.shop;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

import junit.framework.TestCase;

public class BaseTest extends TestCase{
	protected SessionFactory sf;
	
	public BaseTest() {
		super();
	}

	public BaseTest(String name) {
		super(name);
	}
	
	@Override
	protected void setUp() throws Exception {
		Configuration cfg = new Configuration().configure();
		sf = cfg.buildSessionFactory();
	}

	@Override
	protected void tearDown() throws Exception {
		sf.close();
	}
	
}
